<script type="text/javascript">
    region('brand_id','0','{{$dao->brand_id ?? 0}}');
    region('brand_model_id', '{{$dao->brand_id ?? 0}}', '{{$dao->brand_model_id ?? 0}}');

    layui.use(['layer', 'form','upload'], function(){
        let layer = layui.layer;
        let form = layui.form;
        let upload = layui.upload;

        form.on('select(brand_id)', function(data){
            region('brand_model_id', data.value);
            form.render('select');
        });



        @component('admin.upload')
        @endcomponent

        uploadFun('cover');

        @component('admin.ajax',['call'=>'close(true)'])
        @endcomponent
    });
</script>